package com.wontube.smr.client.model.po;

import java.io.Serializable;
import java.util.Calendar;
import java.util.Date;
import java.math.BigDecimal;

public class TVShow implements Serializable {
	// user defined
	public final static String CATEGORY_ANIME = "Anime";
	public final static String CATEGORY_DRAMA = "Drama";
	public final static String CATEGORY_CHINESE_TV = "ChineseTV";
	public final static String CATEGORY_JAPANESE_TV = "JapaneseTV";
	public final static String CATEGORY_KOREAN_TV = "KoreanTV";
	
	public String getAirDateText() {
		StringBuilder sb = new StringBuilder();
		Calendar calendar = Calendar.getInstance();
		if (this.airBeginDate != null) {
			calendar.setTime(this.airBeginDate);
			sb.append(calendar.get(Calendar.YEAR));
		}
		
		if (this.airEndDate != null) {
			calendar.setTime(this.airEndDate);
			sb.append(" - ");
			sb.append(calendar.get(Calendar.YEAR));
		}
		
		return sb.toString();
	}

	/**
	 * This field was generated by MyBatis Generator. This field corresponds to the database column tv_show.id
	 * @mbggenerated
	 */
	private String id;
	/**
	 * This field was generated by MyBatis Generator. This field corresponds to the database column tv_show.area
	 * @mbggenerated
	 */
	private String area;
	/**
	 * This field was generated by MyBatis Generator. This field corresponds to the database column tv_show.name
	 * @mbggenerated
	 */
	private String name;
	/**
	 * This field was generated by MyBatis Generator. This field corresponds to the database column tv_show.description
	 * @mbggenerated
	 */
	private String description;
	/**
	 * This field was generated by MyBatis Generator. This field corresponds to the database column tv_show.director
	 * @mbggenerated
	 */
	private String director;
	/**
	 * This field was generated by MyBatis Generator. This field corresponds to the database column tv_show.actors
	 * @mbggenerated
	 */
	private String actors;
	/**
	 * This field was generated by MyBatis Generator. This field corresponds to the database column tv_show.thumbnail
	 * @mbggenerated
	 */
	private String thumbnail;
	/**
	 * This field was generated by MyBatis Generator. This field corresponds to the database column tv_show.score
	 * @mbggenerated
	 */
	private BigDecimal score;
	/**
	 * This field was generated by MyBatis Generator. This field corresponds to the database column tv_show.episode_cnt
	 * @mbggenerated
	 */
	private Integer episodeCnt;
	/**
	 * This field was generated by MyBatis Generator. This field corresponds to the database column tv_show.genre
	 * @mbggenerated
	 */
	private String genre;
	/**
	 * This field was generated by MyBatis Generator. This field corresponds to the database column tv_show.website
	 * @mbggenerated
	 */
	private String website;
	/**
	 * This field was generated by MyBatis Generator. This field corresponds to the database column tv_show.video_id
	 * @mbggenerated
	 */
	private String videoId;
	/**
	 * This field was generated by MyBatis Generator. This field corresponds to the database column tv_show.version
	 * @mbggenerated
	 */
	private Date version;
	/**
	 * This field was generated by MyBatis Generator. This field corresponds to the database column tv_show.item_url
	 * @mbggenerated
	 */
	private String itemUrl;
	/**
	 * This field was generated by MyBatis Generator. This field corresponds to the database column tv_show.sort_index
	 * @mbggenerated
	 */
	private Integer sortIndex;
	/**
	 * This field was generated by MyBatis Generator. This field corresponds to the database column tv_show.season_count
	 * @mbggenerated
	 */
	private Integer seasonCount;
	/**
	 * This field was generated by MyBatis Generator. This field corresponds to the database column tv_show.air_begin_date
	 * @mbggenerated
	 */
	private Date airBeginDate;
	/**
	 * This field was generated by MyBatis Generator. This field corresponds to the database column tv_show.air_end_date
	 * @mbggenerated
	 */
	private Date airEndDate;
	/**
	 * This field was generated by MyBatis Generator. This field corresponds to the database column tv_show.banner_img_url
	 * @mbggenerated
	 */
	private String bannerImgUrl;
	/**
	 * This field was generated by MyBatis Generator. This field corresponds to the database column tv_show.title_initial
	 * @mbggenerated
	 */
	private String titleInitial;
	/**
	 * This field was generated by MyBatis Generator. This field corresponds to the database column tv_show.category
	 * @mbggenerated
	 */
	private String category;
	/**
	 * This field was generated by MyBatis Generator. This field corresponds to the database table tv_show
	 * @mbggenerated
	 */
	private static final long serialVersionUID = 1L;

	/**
	 * This method was generated by MyBatis Generator. This method returns the value of the database column tv_show.id
	 * @return  the value of tv_show.id
	 * @mbggenerated
	 */
	public String getId() {
		return id;
	}

	/**
	 * This method was generated by MyBatis Generator. This method sets the value of the database column tv_show.id
	 * @param id  the value for tv_show.id
	 * @mbggenerated
	 */
	public void setId(String id) {
		this.id = id;
	}

	/**
	 * This method was generated by MyBatis Generator. This method returns the value of the database column tv_show.area
	 * @return  the value of tv_show.area
	 * @mbggenerated
	 */
	public String getArea() {
		return area;
	}

	/**
	 * This method was generated by MyBatis Generator. This method sets the value of the database column tv_show.area
	 * @param area  the value for tv_show.area
	 * @mbggenerated
	 */
	public void setArea(String area) {
		this.area = area;
	}

	/**
	 * This method was generated by MyBatis Generator. This method returns the value of the database column tv_show.name
	 * @return  the value of tv_show.name
	 * @mbggenerated
	 */
	public String getName() {
		return name;
	}

	/**
	 * This method was generated by MyBatis Generator. This method sets the value of the database column tv_show.name
	 * @param name  the value for tv_show.name
	 * @mbggenerated
	 */
	public void setName(String name) {
		this.name = name;
	}

	/**
	 * This method was generated by MyBatis Generator. This method returns the value of the database column tv_show.description
	 * @return  the value of tv_show.description
	 * @mbggenerated
	 */
	public String getDescription() {
		return description;
	}

	/**
	 * This method was generated by MyBatis Generator. This method sets the value of the database column tv_show.description
	 * @param description  the value for tv_show.description
	 * @mbggenerated
	 */
	public void setDescription(String description) {
		this.description = description;
	}

	/**
	 * This method was generated by MyBatis Generator. This method returns the value of the database column tv_show.director
	 * @return  the value of tv_show.director
	 * @mbggenerated
	 */
	public String getDirector() {
		return director;
	}

	/**
	 * This method was generated by MyBatis Generator. This method sets the value of the database column tv_show.director
	 * @param director  the value for tv_show.director
	 * @mbggenerated
	 */
	public void setDirector(String director) {
		this.director = director;
	}

	/**
	 * This method was generated by MyBatis Generator. This method returns the value of the database column tv_show.actors
	 * @return  the value of tv_show.actors
	 * @mbggenerated
	 */
	public String getActors() {
		return actors;
	}

	/**
	 * This method was generated by MyBatis Generator. This method sets the value of the database column tv_show.actors
	 * @param actors  the value for tv_show.actors
	 * @mbggenerated
	 */
	public void setActors(String actors) {
		this.actors = actors;
	}

	/**
	 * This method was generated by MyBatis Generator. This method returns the value of the database column tv_show.thumbnail
	 * @return  the value of tv_show.thumbnail
	 * @mbggenerated
	 */
	public String getThumbnail() {
		return thumbnail;
	}

	/**
	 * This method was generated by MyBatis Generator. This method sets the value of the database column tv_show.thumbnail
	 * @param thumbnail  the value for tv_show.thumbnail
	 * @mbggenerated
	 */
	public void setThumbnail(String thumbnail) {
		this.thumbnail = thumbnail;
	}

	/**
	 * This method was generated by MyBatis Generator. This method returns the value of the database column tv_show.score
	 * @return  the value of tv_show.score
	 * @mbggenerated
	 */
	public BigDecimal getScore() {
		return score;
	}

	/**
	 * This method was generated by MyBatis Generator. This method sets the value of the database column tv_show.score
	 * @param score  the value for tv_show.score
	 * @mbggenerated
	 */
	public void setScore(BigDecimal score) {
		this.score = score;
	}

	/**
	 * This method was generated by MyBatis Generator. This method returns the value of the database column tv_show.episode_cnt
	 * @return  the value of tv_show.episode_cnt
	 * @mbggenerated
	 */
	public Integer getEpisodeCnt() {
		return episodeCnt;
	}

	/**
	 * This method was generated by MyBatis Generator. This method sets the value of the database column tv_show.episode_cnt
	 * @param episodeCnt  the value for tv_show.episode_cnt
	 * @mbggenerated
	 */
	public void setEpisodeCnt(Integer episodeCnt) {
		this.episodeCnt = episodeCnt;
	}

	/**
	 * This method was generated by MyBatis Generator. This method returns the value of the database column tv_show.genre
	 * @return  the value of tv_show.genre
	 * @mbggenerated
	 */
	public String getGenre() {
		return genre;
	}

	/**
	 * This method was generated by MyBatis Generator. This method sets the value of the database column tv_show.genre
	 * @param genre  the value for tv_show.genre
	 * @mbggenerated
	 */
	public void setGenre(String genre) {
		this.genre = genre;
	}

	/**
	 * This method was generated by MyBatis Generator. This method returns the value of the database column tv_show.website
	 * @return  the value of tv_show.website
	 * @mbggenerated
	 */
	public String getWebsite() {
		return website;
	}

	/**
	 * This method was generated by MyBatis Generator. This method sets the value of the database column tv_show.website
	 * @param website  the value for tv_show.website
	 * @mbggenerated
	 */
	public void setWebsite(String website) {
		this.website = website;
	}

	/**
	 * This method was generated by MyBatis Generator. This method returns the value of the database column tv_show.video_id
	 * @return  the value of tv_show.video_id
	 * @mbggenerated
	 */
	public String getVideoId() {
		return videoId;
	}

	/**
	 * This method was generated by MyBatis Generator. This method sets the value of the database column tv_show.video_id
	 * @param videoId  the value for tv_show.video_id
	 * @mbggenerated
	 */
	public void setVideoId(String videoId) {
		this.videoId = videoId;
	}

	/**
	 * This method was generated by MyBatis Generator. This method returns the value of the database column tv_show.version
	 * @return  the value of tv_show.version
	 * @mbggenerated
	 */
	public Date getVersion() {
		return version;
	}

	/**
	 * This method was generated by MyBatis Generator. This method sets the value of the database column tv_show.version
	 * @param version  the value for tv_show.version
	 * @mbggenerated
	 */
	public void setVersion(Date version) {
		this.version = version;
	}

	/**
	 * This method was generated by MyBatis Generator. This method returns the value of the database column tv_show.item_url
	 * @return  the value of tv_show.item_url
	 * @mbggenerated
	 */
	public String getItemUrl() {
		return itemUrl;
	}

	/**
	 * This method was generated by MyBatis Generator. This method sets the value of the database column tv_show.item_url
	 * @param itemUrl  the value for tv_show.item_url
	 * @mbggenerated
	 */
	public void setItemUrl(String itemUrl) {
		this.itemUrl = itemUrl;
	}

	/**
	 * This method was generated by MyBatis Generator. This method returns the value of the database column tv_show.sort_index
	 * @return  the value of tv_show.sort_index
	 * @mbggenerated
	 */
	public Integer getSortIndex() {
		return sortIndex;
	}

	/**
	 * This method was generated by MyBatis Generator. This method sets the value of the database column tv_show.sort_index
	 * @param sortIndex  the value for tv_show.sort_index
	 * @mbggenerated
	 */
	public void setSortIndex(Integer sortIndex) {
		this.sortIndex = sortIndex;
	}

	/**
	 * This method was generated by MyBatis Generator. This method returns the value of the database column tv_show.season_count
	 * @return  the value of tv_show.season_count
	 * @mbggenerated
	 */
	public Integer getSeasonCount() {
		return seasonCount;
	}

	/**
	 * This method was generated by MyBatis Generator. This method sets the value of the database column tv_show.season_count
	 * @param seasonCount  the value for tv_show.season_count
	 * @mbggenerated
	 */
	public void setSeasonCount(Integer seasonCount) {
		this.seasonCount = seasonCount;
	}

	/**
	 * This method was generated by MyBatis Generator. This method returns the value of the database column tv_show.air_begin_date
	 * @return  the value of tv_show.air_begin_date
	 * @mbggenerated
	 */
	public Date getAirBeginDate() {
		return airBeginDate;
	}

	/**
	 * This method was generated by MyBatis Generator. This method sets the value of the database column tv_show.air_begin_date
	 * @param airBeginDate  the value for tv_show.air_begin_date
	 * @mbggenerated
	 */
	public void setAirBeginDate(Date airBeginDate) {
		this.airBeginDate = airBeginDate;
	}

	/**
	 * This method was generated by MyBatis Generator. This method returns the value of the database column tv_show.air_end_date
	 * @return  the value of tv_show.air_end_date
	 * @mbggenerated
	 */
	public Date getAirEndDate() {
		return airEndDate;
	}

	/**
	 * This method was generated by MyBatis Generator. This method sets the value of the database column tv_show.air_end_date
	 * @param airEndDate  the value for tv_show.air_end_date
	 * @mbggenerated
	 */
	public void setAirEndDate(Date airEndDate) {
		this.airEndDate = airEndDate;
	}

	/**
	 * This method was generated by MyBatis Generator. This method returns the value of the database column tv_show.banner_img_url
	 * @return  the value of tv_show.banner_img_url
	 * @mbggenerated
	 */
	public String getBannerImgUrl() {
		return bannerImgUrl;
	}

	/**
	 * This method was generated by MyBatis Generator. This method sets the value of the database column tv_show.banner_img_url
	 * @param bannerImgUrl  the value for tv_show.banner_img_url
	 * @mbggenerated
	 */
	public void setBannerImgUrl(String bannerImgUrl) {
		this.bannerImgUrl = bannerImgUrl;
	}

	/**
	 * This method was generated by MyBatis Generator. This method returns the value of the database column tv_show.title_initial
	 * @return  the value of tv_show.title_initial
	 * @mbggenerated
	 */
	public String getTitleInitial() {
		return titleInitial;
	}

	/**
	 * This method was generated by MyBatis Generator. This method sets the value of the database column tv_show.title_initial
	 * @param titleInitial  the value for tv_show.title_initial
	 * @mbggenerated
	 */
	public void setTitleInitial(String titleInitial) {
		this.titleInitial = titleInitial;
	}

	/**
	 * This method was generated by MyBatis Generator. This method returns the value of the database column tv_show.category
	 * @return  the value of tv_show.category
	 * @mbggenerated
	 */
	public String getCategory() {
		return category;
	}

	/**
	 * This method was generated by MyBatis Generator. This method sets the value of the database column tv_show.category
	 * @param category  the value for tv_show.category
	 * @mbggenerated
	 */
	public void setCategory(String category) {
		this.category = category;
	}
}